#ifndef _RandomMethods_H_
#define _RandomMethods_H_
#include <iostream>
#include <string>
#include <ctime>
#include <stdlib.h>
#define  SIZE_CHAR 32
using namespace std;

class RandomMethods{
public:
	string random();
};

string RandomMethods::random()
{
	const char CCH[] = "_1123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_";
	srand((unsigned)time(NULL));
	char ch[SIZE_CHAR + 1] = {0};
	string str(SIZE_CHAR,'\0');
	for (int i = 0; i < SIZE_CHAR; ++i)
   	{
   		int x = rand() / (RAND_MAX / (sizeof(CCH) - 1));
         		ch[i] = CCH[x];
         		str[i]=ch[i];
   	}
   	return str;
}
#endif